/**
 * 
 */
package org.cuatrovientos.hotel.baelish.dani;


/**
 * Class represent a Room
 * @author daniel_ancin
 *
 */
public class Room {
	private static final int LUXE_ROOM_PRYCE = 90;
	private static final int NORMAL_ROOM_PRYCE = 20;
	private String roomName;
	private String guest;
	private String roomType;

	/**
	 * Defaul constructor
	 */
	public Room (){
	
	}
	
	
	/**
	 * 
	 * @param name
	 * @param rommtype
	 */
	public Room(String name, String rommtype) {
		super();
		this.setRoomnam(name);
		this.setRoomtype(rommtype);
	}


	/**
	 * @return the roomMam
	 */
	String getRoomnam() {
		return roomName;
	}


	/**
	 * @param roomnam the roomnam to set
	 */
	void setRoomnam(String roomnam) {
		this.roomName = roomnam;
	}


	/**
	 * @return the guest
	 */
	String getGuest() {
		return guest;
	}


	/**
	 * @param guest the guest to set
	 */
	void setGuest(String guest) {
		this.guest = guest;
	}


	/**
	 * @return the roomtype
	 */
	String getRoomtype() {
		return roomType;
	}


	/**
	 * @param roomtype the roomtype to set
	 */
	void setRoomtype(String roomtype) {
		this.roomType = roomtype;
	}
	
	
	// la clase Room, debes añadir un método llamado public int price () 
	//que devuelva el precio de la habitación.
	//Cuando la habitación es normal (roomtype=”Normal”) el precio debe ser 20,
	//si es de luxe (roomtype=”Luxe”) el precio debe ser 90.
	/**
	 * Method price Room
	 * @return
	 */
	public int price(){
		if (roomType.equals("normal")){
			return NORMAL_ROOM_PRYCE;
		}else{
			return LUXE_ROOM_PRYCE;
			}
		}


	@Override
	public String toString() {
		return "Room [roomName=" + roomName + ", guest=" + guest
				+ ", roomType=" + roomType + "]";
	}
	
	
	}

